<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  ~ Copyright (c) 2018. QDU 2015 Java1 Team CompilationError
  --%>

<%--
  Created by IntelliJ IDEA.
  User: inkux
  Date: 2018/6/7
  Time: 14:33
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<html>
<head>
	<title>New User</title>
	<%@include file="../resources/js_css_includes.jsp" %>
	<script src="${pageContext.request.contextPath}/js/new_user.js"></script>
</head>
<body>
<%@include file="../resources/navigation_header.jsp" %>
<%@include file="../resources/jsp_body_preludes.jsp" %>
<div class="table_div_forall">
<div id="new_user_wrapper" style="width:500px; margin:auto;">
	<form id="new_user_form" method="post">
		<fieldset>
			<legend>New User</legend>
			<p>
				<label for="username">Username</label>
				<input class="input" id="username" name="username" type="text">
			</p>
			<p>
				<label for="password">Default Password</label>
				<input class="input" id="password" name="password" type="password">
			</p>
			<p>
				<label for="cfm_password">Confirm Password</label>
				<input class="input" id="cfm_password" name="cfm_password" type="password">
			</p>
			<p>
				<input class="radio" id="gender_m" name="gender" type="radio" value="M" checked required>
				<label for="gender_m">Male</label>
				<input class="radio" id="gender_f" name="gender" type="radio" value="F" required>
				<label for="gender_f">Female</label>
			</p>
			<p>
				<label for="department">Department</label>
				<select name="departmentId" id="department">
					<c:forEach items="${departmentMap}" var="department">
						<option value="${department.key}">${department.value.name}</option>
					</c:forEach>
				</select>
			</p>
			<p>
				<label for="designation">Designation</label>
				<select name="designationId" id="designation">
					<c:forEach items="${designationMap}" var="designation">
						<option value="${designation.key}">${designation.value.name}</option>
					</c:forEach>
				</select>
			</p>
			<p>
				<label for="permissionGroup">Permission Group</label>
				<select name="permissionGroupId" id="permissionGroup">
					<c:forEach items="${permissionMap}" var="permission">
						<option value="${permission.key}">${permission.value.groupName}</option>
					</c:forEach>
				</select>
			</p>
			<p>
				<label for="mobile">Mobile No.</label>
				<input class="input" id="mobile" name="mobile" type="text">
			</p>
			<p>
				<label for="email">Email</label>
				<input class="input" id="email" name="email" type="text">
			</p>
			<p>
				<label for="salary">Salary</label>
				<input class="input" id="salary" name="salary" type="number">
			</p>
			<input class="btn_color2" type="submit">
		</fieldset>
	</form>
</div>
</div>
</body>
</html>
